<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>


<html:html>
	
	<head>
  		<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  		<title>Result</title>
	</head>
	
	<body>
		
		<jsp:useBean id="search" scope="request" class="fr.masterglr.website.googlr.model.Search"/>
		<% out.println(search.getDate()); %>
		
		<TABLE width="100%" border="1">
			<logic:iterate id="myResult" name="search" property="results">
				<TD align="left">
					<A HREF="<% out.println(((fr.masterglr.website.googlr.model.Result)myResult).getUrl()); %>"><% out.println(((fr.masterglr.website.googlr.model.Result)myResult).getTitle()); %></A><br>
				</TD>
				<TD align="right">	
					<% out.println(((fr.masterglr.website.googlr.model.Result)myResult).getSummary()); %><br>
				</TD>
			</logic:iterate>
		</TABLE>
	
	</body>

</html:html>
